import { ObjCreate } from "../ObjCreate";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { ESex } from "../../../../../Message/Public/ESex";
type int = number;
//class CopyResultBg
    
    export  class CopyResultBg /* flash.display.Sprite */
    {
        constructor(arg1: int=0)
        {
            
            this.sex = arg1;
            this.createChildren();
            return;
        }

        protected createChildren(): void
        {
            this.bg = new Object /* flash.display.Bitmap */();
            this.addChild(this.bg);
            this.person = new Object /* flash.display.Bitmap */();
            this.person.x = -67;
            this.person.y = -60;
            this.addChild(this.person);
            this.line1 = ObjCreate.createBg(178, 80, 365, 2, this, "SplitLine");
            this.line2 = ObjCreate.createBg(178, 234, 365, 2, this, "SplitLine");
            LoaderHelp.addResCallBack(ResFileConst.copyResultBg, this.bgCompl);
            return;
        }

        protected bgCompl(): void
        {
            this.bg.bitmapData = GlobalClass.getBitmapData(ImagesConst.copyResultBg);
            if (this.sex != ESex._ESexMan) 
            {
                this.person.bitmapData = GlobalClass.getBitmapData(ImagesConst.copyResultWomen);
            }
            else 
            {
                this.person.bitmapData = GlobalClass.getBitmapData(ImagesConst.copyResultMan);
            }
            return;
        }

        protected /* var */sex: int=0;

        protected /* var */bg: Object /* flash.display.Bitmap */;

        protected /* var */person: Object /* flash.display.Bitmap */;

        protected /* var */line1: Object /* flash.display.Bitmap */;

        protected /* var */line2: Object /* flash.display.Bitmap */;
    }
